html,
body {
    height: 100%;
    padding: 0;
    margin: 0;
    background: #000;
}

canvas {
    position: absolute;
    width: 100%;
    height: 100%;
}

h1 {
    display: inline-block;
    color: black;
    position: relative;
    border-radius: 20px;
    top: 90%;
    left: 40%;
    width: 320px;
    background-color: rgb(249, 157, 211);
    text-align: center;
}
.losts {
    position: relative;
    top: 70%;
    margin: 17% 38%;
    width: 300px;
    height: 400px;
    transform: rotate(45deg);
}

.losts:hover .snow2 {
    animation: show-2 6s ease-in-out infinite;
}

.losts:hover .snow3 {
    animation: show-3 6s ease-in-out infinite;
}

.losts:hover .snow4 {
    animation: show-4 6s ease-in-out infinite;
}

.losts:hover .snow5 {
    animation: show-5 6s ease-in-out infinite;
}

.losts:hover .snow6 {
    animation: show-6 6s ease-in-out infinite;
}

.losts:hover .snow7 {
    animation: show-7 6s ease-in-out infinite;
}

.losts1 {
    position: absolute;
    top: 0px;
    left: 0;
    opacity: 0.7;
    background-color: rgb(106, 15, 30);
    width: 300px;
    height: 300px;
    border-radius: 0px 300px 0px 300px;
    transform-origin: 300px 300px;
    transition: all 0.2;
}

@keyframes show-2 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes show-3 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(60deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes show-4 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(85deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes show-5 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-30deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes show-6 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-60deg);
    }

    100% {
        transform: rotate(0deg);
    }
}

@keyframes show-7 {
    0% {
        transform: rotate(0deg);
    }

    50% {
        transform: rotate(-85deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
#cube {
    position: absolute;
    top: 185%;
    left: 40%;
    width: 300px;
    height: 450px;
    font-size: 80px;
    text-align: center;
    line-height: 300px;
    transition: 2s;
    transform: rotateY(-30deg) rotateX(-35deg);
    transform-style: preserve-3d;
    margin: 300px auto;
}

#cube:hover {
    transform: rotateY(30deg) rotateX(35deg);
}

#cube>div {
    width: 300px;
    height: 300px;
    position: absolute;
    left: 0;
    top: 0;
    transition: 2s;
    opacity: 0.9;
    border: 1px dashed black;
}
#cube div img {
    width: 100%;
    height: 100%;
}
#cube .flat1 {
    background-color: red;
    transform: translateY(-150px) rotateX(90deg);
}

#cube .flat2 {
    background-color: orange;
    transform: translateY(150px) rotateX(90deg);
}

#cube .flat3 {
    background-color: yellow;
    transform: translateX(-150px) rotateY(90deg);
}

#cube .flat4 {
    background-color: green;
    transform: translateX(150px) rotateY(90deg);
}

#cube .flat5 {
    background-color: lightgreen;
    transform: translateZ(150px);
}

#cube .flat6 {
    background-color: blue;
    transform: translateZ(-150px);
}